<?php 
require_once("scripts/single_product.php");
require_once("scripts/database.php");

function showDetails($id)
{
	$connection = mysqli_connect(DB_HOST, DB_USERNAME, DB_PASS, DB_NAME);
	$product = getSpecifiedProductFromDatabase($connection, $id);
	displayProductWithDetails($product);
	mysqli_close($connection);
}
?>